<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        return $this->view->fetch();
    }

    //注册协议
    public function register()
    {
        $register = db('configuration')->value('register');
        $this->assign('register', $register);
        return $this->view->fetch();
    }

    //用户隐私
    public function privacy()
    {
        $privacy = db('configuration')->value('privacy');
        $this->assign('privacy', $privacy);
        return $this->view->fetch();
    }
}
